package com.core.netty.http.work;

import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

public class SessionUtil {
    private static volatile Map<String, HttpMySession> sessionMap = new HashMap<>();

    public static void put(String ip, HttpMySession session) {
        sessionMap.put(ip, session);
    }

    public static HttpMySession get(String ip) {
        return sessionMap.get(ip);
    }

    public static Map<String, HttpMySession> getSeesionMap() {
        return sessionMap;
    }
}
